package com.study.graalvmdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

    @RequestMapping("/hello")
    public String hello() {
        return "Hello, Spring Boot with GraalVM!";
    }

    @RequestMapping("/test")
    public String test(@RequestParam("age") Integer age) {
        return "Hello," + age;
    }
}
